﻿using System;
using System.Collections.Generic;
using FrankJie.Model;
namespace FrankJie.IDAL
{
	/// <summary>
	/// 友情链接接口
	/// </summary>
	public interface ILink
	{
		/// <summary>
		/// 增加一个友情链接
		/// </summary>
        /// <param name="linkInfo">友情链接实体</param>
        /// <returns>返回友情链接ID</returns>
        int Add(LinkInfo linkInfo);

		/// <summary>
		/// 更新一个友情链接
		/// </summary>
        /// <param name="linkInfo">友情链接实体</param>
        /// <returns>返回是否成功</returns>
        bool Update(LinkInfo linkInfo);

		/// <summary>
        /// 删除一个友情链接
		/// </summary>
        /// <param name="id">友情链接ID</param>
		/// <returns>返回是否成功</returns>
		bool Delete(int id);

        /// <summary>
        /// 获取友情链接列表
        /// </summary>
        /// <returns>返回友情链接集合</returns>
        List<LinkInfo> GetList();
	} 
}
